package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 数据项模板表
 * </p>
 *
 * @author nes
 * @since 2023-03-01
 */
@TableName("is_data_item_template_info")
public class IsDataItemTemplateInfo extends Model<IsDataItemTemplateInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 数据项模板id
     */
    @TableField("template_id")
    private String templateId;
    /**
     * 数据项名
     */
    private String name;
    /**
     * 数据项表字段名
     */
    @TableField("field_name")
    private String fieldName;
    /**
     * 分组名称1
     */
    private String group1;
    /**
     * 分组名称2
     */
    private String group2;
    /**
     * 分组名称3
     */
    private String group3;
    /**
     * 分组名称4
     */
    private String group4;
    /**
     * 分组名称5
     */
    private String group5;
    /**
     * 设备类型1
     */
    private String sblx1;
    /**
     * 设备类型2
     */
    private String sblx2;
    /**
     * 设备类型3
     */
    private String sblx3;
    /**
     * 设备类型4
     */
    private String sblx4;
    /**
     * 设备类型5
     */
    private String sblx5;
    /**
     * 确认号
     */
    private String ack;
    /**
     * 逻辑删除  1 表示删除，0 表示未删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;
    /**
     * 创建人
     */
    @TableField("cr_oper")
    private String crOper;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 修改人
     */
    @TableField("up_oper")
    private String upOper;
    /**
     * 修改时间
     */
    @TableField("gmt_modified")
    private Date gmtModified;
    /**
     * 数据版本号  当前时间戳
     */
    private Long version;
    /**
     * 数据来源
     */
    private String sjly;
    /**
     * 字段类型：0-decimal；1-int；2-bigint；3-varchar；4-char
     */
    @TableField("column_type")
    private Integer columnType;
    /**
     * 字段长度：0-12；1-11；2-20；3-255
     */
    @TableField("column_length")
    private Integer columnLength;
    /**
     * 小数点位数：0-4；1-0
     */
    @TableField("column_decimal_point")
    private Integer columnDecimalPoint;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getGroup1() {
        return group1;
    }

    public void setGroup1(String group1) {
        this.group1 = group1;
    }

    public String getGroup2() {
        return group2;
    }

    public void setGroup2(String group2) {
        this.group2 = group2;
    }

    public String getGroup3() {
        return group3;
    }

    public void setGroup3(String group3) {
        this.group3 = group3;
    }

    public String getGroup4() {
        return group4;
    }

    public void setGroup4(String group4) {
        this.group4 = group4;
    }

    public String getGroup5() {
        return group5;
    }

    public void setGroup5(String group5) {
        this.group5 = group5;
    }

    public String getSblx1() {
        return sblx1;
    }

    public void setSblx1(String sblx1) {
        this.sblx1 = sblx1;
    }

    public String getSblx2() {
        return sblx2;
    }

    public void setSblx2(String sblx2) {
        this.sblx2 = sblx2;
    }

    public String getSblx3() {
        return sblx3;
    }

    public void setSblx3(String sblx3) {
        this.sblx3 = sblx3;
    }

    public String getSblx4() {
        return sblx4;
    }

    public void setSblx4(String sblx4) {
        this.sblx4 = sblx4;
    }

    public String getSblx5() {
        return sblx5;
    }

    public void setSblx5(String sblx5) {
        this.sblx5 = sblx5;
    }

    public String getAck() {
        return ack;
    }

    public void setAck(String ack) {
        this.ack = ack;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getCrOper() {
        return crOper;
    }

    public void setCrOper(String crOper) {
        this.crOper = crOper;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getUpOper() {
        return upOper;
    }

    public void setUpOper(String upOper) {
        this.upOper = upOper;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getSjly() {
        return sjly;
    }

    public void setSjly(String sjly) {
        this.sjly = sjly;
    }

    public Integer getColumnType() {
        return columnType;
    }

    public void setColumnType(Integer columnType) {
        this.columnType = columnType;
    }

    public Integer getColumnLength() {
        return columnLength;
    }

    public void setColumnLength(Integer columnLength) {
        this.columnLength = columnLength;
    }

    public Integer getColumnDecimalPoint() {
        return columnDecimalPoint;
    }

    public void setColumnDecimalPoint(Integer columnDecimalPoint) {
        this.columnDecimalPoint = columnDecimalPoint;
    }

    public static final String ID = "id";

    public static final String TEMPLATE_ID = "template_id";

    public static final String NAME = "name";

    public static final String FIELD_NAME = "field_name";

    public static final String GROUP1 = "group1";

    public static final String GROUP2 = "group2";

    public static final String GROUP3 = "group3";

    public static final String GROUP4 = "group4";

    public static final String GROUP5 = "group5";

    public static final String SBLX1 = "sblx1";

    public static final String SBLX2 = "sblx2";

    public static final String SBLX3 = "sblx3";

    public static final String SBLX4 = "sblx4";

    public static final String SBLX5 = "sblx5";

    public static final String ACK = "ack";

    public static final String IS_DELETED = "is_deleted";

    public static final String CR_OPER = "cr_oper";

    public static final String GMT_CREATE = "gmt_create";

    public static final String UP_OPER = "up_oper";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String VERSION = "version";

    public static final String SJLY = "sjly";

    public static final String COLUMN_TYPE = "column_type";

    public static final String COLUMN_LENGTH = "column_length";

    public static final String COLUMN_DECIMAL_POINT = "column_decimal_point";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "IsDataItemTemplateInfo{" +
        ", id=" + id +
        ", templateId=" + templateId +
        ", name=" + name +
        ", fieldName=" + fieldName +
        ", group1=" + group1 +
        ", group2=" + group2 +
        ", group3=" + group3 +
        ", group4=" + group4 +
        ", group5=" + group5 +
        ", sblx1=" + sblx1 +
        ", sblx2=" + sblx2 +
        ", sblx3=" + sblx3 +
        ", sblx4=" + sblx4 +
        ", sblx5=" + sblx5 +
        ", ack=" + ack +
        ", isDeleted=" + isDeleted +
        ", crOper=" + crOper +
        ", gmtCreate=" + gmtCreate +
        ", upOper=" + upOper +
        ", gmtModified=" + gmtModified +
        ", version=" + version +
        ", sjly=" + sjly +
        ", columnType=" + columnType +
        ", columnLength=" + columnLength +
        ", columnDecimalPoint=" + columnDecimalPoint +
        "}";
    }
}
